package com.avalon.erp.addon.pet.service.shop.commodity;

import com.avalon.core.field.Field;
import com.avalon.core.field.Fields;
import com.avalon.core.service.AbstractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class PetCommodityService extends AbstractService {
    @Override
    public String getServiceName() {
        return "pet.commodity";
    }

    @Override
    public String getLabel() {
        return "宠物商品";
    }

    @Override
    public Boolean needDefaultNameField() {
        return false;
    }

    private final Field title = Fields.createString("商品名称");
    private final Field price = Fields.createBigDecimal("价格", 10, 2);
    private final Field stock = Fields.createBigDecimal("库存", 10, 2);
    private final Field firstUrl = Fields.createImage("首图");
    private final Field firstUrlThumb = Fields.createImage("首图缩略图");
    private final Field description = Fields.createString("描述");
}
